import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LocalVarManager')
export class LocalVarManager extends Component {
    private static _instance: LocalVarManager = null;
    public isLoginByToken = "isLoginByToken";  //是否通过token登录, 当为true时登录界面点击登录按钮时，会自动登录，当点击注销时，设置为false，不自动登录，登录成功后再设置为true.
    public token = "token";
    public  isHideNotice_ = "isHideNotice_" //是否隐藏公告
    public static getInstance() {
        if (!this._instance) {
            this._instance = new LocalVarManager();
        }
        return this._instance;
    }
}


